#pragma once

#include "Coordinates.h"

#include "Color.h"

namespace HW2{
struct Polygon;

	struct Edge
	{
		Coordinates start, end;
		Color color;

		int parentId;

		Edge(Coordinates s, Coordinates e, Color color) : start(s), end(e), color(color), parentId(-1) {}
		
		// same starting point, direction inverted
		Edge inverse() { return Edge(start, start - end + start, color); }
	};

}